package com.huli.exception;


import com.huli.utils.Result;

public class CustomException extends RuntimeException {

    private Result result;

    public CustomException(Result result) {
        this.result = result;
    }

    public Result getResult(){
        return this.result;
    }

    public CustomException() {
        super();
    }

    public CustomException(String message) {
        super(message);
    }

    public CustomException(String message, Throwable cause) {
        super(message, cause);
    }

    public CustomException(Throwable cause) {
        super(cause);
    }

    protected CustomException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
